package com.sicent.app0013.operate.model;

import java.io.Serializable;

public class Region implements Serializable {

    private static final long serialVersionUID = -1L;

    /** region_id : **/
    private Integer regionId;
    /** parent_region_id : **/
    private Integer parentRegionId;
    /** region_code : **/
    private String regionCode;
    /** region_name : **/
    private String regionName;
    /** original_code : **/
    private String originalCode;
    /** leaf : **/
    private Boolean leaf;
    /** region_order : **/
    private Short regionOrder;

    public Region() {
        
    }

    public Region(Integer regionId) {
        this.regionId = regionId;
    }

    public Integer getRegionId() {
        return regionId;
    }

    public Region setRegionId(Integer regionId) {
        this.regionId = regionId;
        return this;
    }

    public Integer getParentRegionId() {
        return parentRegionId;
    }

    public Region setParentRegionId(Integer parentRegionId) {
        this.parentRegionId = parentRegionId;
        return this;
    }

    public String getRegionCode() {
        return regionCode;
    }

    public Region setRegionCode(String regionCode) {
        this.regionCode = regionCode;
        return this;
    }

    public String getRegionName() {
        return regionName;
    }

    public Region setRegionName(String regionName) {
        this.regionName = regionName;
        return this;
    }

    public String getOriginalCode() {
        return originalCode;
    }

    public Region setOriginalCode(String originalCode) {
        this.originalCode = originalCode;
        return this;
    }

    public Boolean getLeaf() {
        return leaf;
    }

    public Region setLeaf(Boolean leaf) {
        this.leaf = leaf;
        return this;
    }

    public Short getRegionOrder() {
        return regionOrder;
    }

    public Region setRegionOrder(Short regionOrder) {
        this.regionOrder = regionOrder;
        return this;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", regionId=").append(regionId);
        sb.append(", parentRegionId=").append(parentRegionId);
        sb.append(", regionCode=").append(regionCode);
        sb.append(", regionName=").append(regionName);
        sb.append(", originalCode=").append(originalCode);
        sb.append(", leaf=").append(leaf);
        sb.append(", regionOrder=").append(regionOrder);
        sb.append("]");
        return sb.toString();
    }
}